a11y: Realize parent ATContext for the stack page
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 11 Nov 2020 17:45:32 +0000 (17:45 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 11 Nov 2020 18:33:15 +0000 (18:33 +0000)
Just like for popovers, the stack page is not directly connected on the
widget's DOM, so we need to realize the parent ATContext ourselves.

gtk/a11y/gtkatspicontext.c

index 98bde0a0e7b3cbefd0cb6db16f438f4e32262ae8..8a83ed838d367e2fcd8b3c6e1ee7cc6ff56c3c02 100644 (file)
@@ -411,7 +411,11 @@ get_parent_context_ref (GtkAccessible *accessible)
             gtk_accessible_get_at_context (GTK_ACCESSIBLE (page));
 
           if (parent_context != NULL)
-            res = gtk_at_spi_context_to_ref (GTK_AT_SPI_CONTEXT (parent_context));
+            {
+              gtk_at_context_realize (parent_context);
+
+              res = gtk_at_spi_context_to_ref (GTK_AT_SPI_CONTEXT (parent_context));
+            }
         }
       else
         {